app.service("tsOrderSiteService", ["$http", function ($http) {

    this.findSiteAndLsp = function (tsOrderId) {
        return $.ajax(utils.url("/operationSite/assignQuery"), {
            type: 'POST',
            data: tsOrderId,
            contentType: 'application/json',
            dataType: 'json'
        });
    };

    this.distributionSiteOrLsp = function (model) {
        return $.ajax(utils.url("/transportation/distributionSiteOrLsp"), {
            type: 'POST',
            data: JSON.stringify(model),
            contentType: 'application/json',
            dataType: 'json'
        });
    };
}]);